<template>
  <div class="main">
    <div class="login-background">
      <div class="tech-grid"></div>
      <div class="floating-particles"></div>
      <div class="scan-lines"></div>
      <div class="login-overlay"></div>
      <div class="login-content">
        <div class="system-branding">
          <div class="logo-container">
            <div class="eye-icon">
              <div class="pupil"></div>
              <div class="iris"></div>
            </div>
          </div>
          <div class="system-title">
            <h1>深瞳系统</h1>
            <div class="subtitle-wrapper">
              <span class="subtitle">DEEP PUPIL SYSTEM</span>
              <div class="tech-line"></div>
            </div>
            <p class="system-desc">智能风控 · 精准识别 · 安全防护</p>
          </div>
        </div>
        <div class="login-form-wrapper">
          <div class="form-header">
            <div class="security-badge">
              <i class="security-icon"></i>
              <span>安全登录</span>
            </div>
          </div>
          <a-form id="formLogin" class="user-layout-login" ref="formLogin" :form="form" @submit="handleSubmit">
            <a-tabs
              :activeKey="customActiveKey"
              :tabBarStyle="{ textAlign: 'center', borderBottom: 'unset' }"
              @change="handleTabClick"
            >
              <a-tab-pane key="tab1" :tab="$t('user.login.tab-login-credentials')">
                <a-alert
                  v-if="isLoginError"
                  type="error"
                  showIcon
                  style="margin-bottom: 24px"
                  :message="$t('user.login.message-invalid-credentials')"
                />
                <a-form-item>
                  <a-input
                    size="large"
                    type="text"
                    :placeholder="$t('user.login.username.placeholder')"
                    v-decorator="[
                      'username',
                      {
                        rules: [
                          { required: true, message: $t('user.userName.required') },
                          { validator: handleUsernameOrEmail },
                        ],
                        validateTrigger: 'change',
                      },
                    ]"
                  >
                    <a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }" />
                  </a-input>
                </a-form-item>

                <a-form-item>
                  <a-input-password
                    size="large"
                    :placeholder="$t('user.login.password.placeholder')"
                    v-decorator="[
                      'password',
                      { rules: [{ required: true, message: $t('user.password.required') }], validateTrigger: 'blur' },
                    ]"
                  >
                    <a-icon slot="prefix" type="lock" :style="{ color: 'rgba(0,0,0,.25)' }" />
                  </a-input-password>
                </a-form-item>
              </a-tab-pane>
              <!-- <a-tab-pane key="tab2" :tab="$t('user.login.tab-login-mobile')">
          <a-form-item>
            <a-input size="large" type="text" :placeholder="$t('user.login.mobile.placeholder')" v-decorator="['mobile', {rules: [{ required: true, pattern: /^1[34578]\d{9}$/, message: $t('user.login.mobile.placeholder') }], validateTrigger: 'change'}]">
              <a-icon slot="prefix" type="mobile" :style="{ color: 'rgba(0,0,0,.25)' }"/>
            </a-input>
          </a-form-item>

          <a-row :gutter="16">
            <a-col class="gutter-row" :span="16">
              <a-form-item>
                <a-input size="large" type="text" :placeholder="$t('user.login.mobile.verification-code.placeholder')" v-decorator="['captcha', {rules: [{ required: true, message: $t('user.verification-code.required') }], validateTrigger: 'blur'}]">
                  <a-icon slot="prefix" type="mail" :style="{ color: 'rgba(0,0,0,.25)' }"/>
                </a-input>
              </a-form-item>
            </a-col>
            <a-col class="gutter-row" :span="8">
              <a-button
                class="getCaptcha"
                tabindex="-1"
                :disabled="state.smsSendBtn"
                @click.stop.prevent="getCaptcha"
                v-text="!state.smsSendBtn && $t('user.register.get-verification-code') || (state.time+' s')"
              ></a-button>
            </a-col>
          </a-row>
        </a-tab-pane> -->
            </a-tabs>

            <!-- <a-form-item>
        <a-checkbox v-decorator="['rememberMe', { valuePropName: 'checked' }]">{{ $t('user.login.remember-me') }}</a-checkbox>
        <router-link
          :to="{ name: 'recover', params: { user: 'aaa'} }"
          class="forge-password"
          style="float: right;"
        >{{ $t('user.login.forgot-password') }}</router-link>
      </a-form-item> -->

            <a-form-item style="margin-top: 24px">
              <a-button
                size="large"
                type="primary"
                htmlType="submit"
                class="login-button"
                :loading="state.loginBtn"
                :disabled="state.loginBtn"
              >{{ $t('user.login.login') }}</a-button
              >
            </a-form-item>

            <!-- <div class="user-login-other">
        <span>{{ $t('user.login.sign-in-with') }}</span>
        <a>
          <a-icon class="item-icon" type="alipay-circle"></a-icon>
        </a>
        <a>
          <a-icon class="item-icon" type="taobao-circle"></a-icon>
        </a>
        <a>
          <a-icon class="item-icon" type="weibo-circle"></a-icon>
        </a>
        <router-link class="register" :to="{ name: 'register' }">{{ $t('user.login.signup') }}</router-link>
      </div> -->
          </a-form>
        </div>
      </div>
    </div>

    <two-step-captcha
      v-if="requiredTwoStepCaptcha"
      :visible="stepCaptchaVisible"
      @success="stepCaptchaSuccess"
      @cancel="stepCaptchaCancel"
    ></two-step-captcha>
  </div>
</template>

<script>
import TwoStepCaptcha from '@/components/tools/TwoStepCaptcha'
import { mapActions } from 'vuex'
import { timeFix } from '@/utils/util'
import { getAuth, getSmsCaptcha } from '@/api/login'
import { rsaPwd } from '@/utils/user'

export default {
  components: {
    TwoStepCaptcha,
  },
  data() {
    return {
      customActiveKey: 'tab1',
      loginBtn: false,
      // login type: 0 email, 1 username, 2 telephone
      loginType: 0,
      isLoginError: false,
      requiredTwoStepCaptcha: false,
      stepCaptchaVisible: false,
      form: this.$form.createForm(this),
      state: {
        time: 60,
        loginBtn: false,
        // login type: 0 email, 1 username, 2 telephone
        loginType: 0,
        smsSendBtn: false,
      },
    }
  },
  created() {
    // get2step({})
    //   .then((res) => {
    //     this.requiredTwoStepCaptcha = res.result.stepCode
    //   })
    //   .catch(() => {
    //     this.requiredTwoStepCaptcha = false
    //   })
    // this.requiredTwoStepCaptcha = true
  },
  methods: {
    ...mapActions(['Login', 'Logout']),
    // handler
    handleUsernameOrEmail(rule, value, callback) {
      const { state } = this
      const regex = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/
      if (regex.test(value)) {
        state.loginType = 0
      } else {
        state.loginType = 1
      }
      callback()
    },
    handleTabClick(key) {
      this.customActiveKey = key
      // this.form.resetFields()
    },
    handleSubmit(e) {
      e.preventDefault()
      const {
        form: { validateFields },
        state,
        customActiveKey,
        Login,
      } = this

      state.loginBtn = true

      const validateFieldsKey = customActiveKey === 'tab1' ? ['username', 'password'] : ['mobile', 'captcha']

      validateFields(validateFieldsKey, { force: true }, async (err, values) => {
        if (!err) {
          console.log('login form', values)
          //   const loginParams = { ...values }
          //   delete loginParams.username
          //   loginParams[!state.loginType ? 'email' : 'username'] = values.username
          //   loginParams.password = md5(values.password)
          const password = rsaPwd(values.password)
          const authCode = await getAuth({
            account: values.username,
            password,
          })
          console.log(authCode)
          const loginParams = {
            account: values.username,
            password,
            tempRandom: authCode?.data,
          }
          Login(loginParams)
            .then((res) => this.loginSuccess(res))
            .catch((err) => this.requestFailed(err))
            .finally(() => {
              state.loginBtn = false
            })
        } else {
          setTimeout(() => {
            state.loginBtn = false
          }, 600)
        }
      })
    },
    getCaptcha(e) {
      e.preventDefault()
      const {
        form: { validateFields },
        state,
      } = this

      validateFields(['mobile'], { force: true }, (err, values) => {
        if (!err) {
          state.smsSendBtn = true

          const interval = window.setInterval(() => {
            if (state.time-- <= 0) {
              state.time = 60
              state.smsSendBtn = false
              window.clearInterval(interval)
            }
          }, 1000)

          const hide = this.$message.loading('验证码发送中..', 0)
          getSmsCaptcha({ mobile: values.mobile })
            .then((res) => {
              setTimeout(hide, 2500)
              this.$notification['success']({
                message: '提示',
                description: '验证码获取成功，您的验证码为：' + res.result.captcha,
                duration: 8,
              })
            })
            .catch((err) => {
              setTimeout(hide, 1)
              clearInterval(interval)
              state.time = 60
              state.smsSendBtn = false
              this.requestFailed(err)
            })
        }
      })
    },
    stepCaptchaSuccess() {
      this.loginSuccess()
    },
    stepCaptchaCancel() {
      this.Logout().then(() => {
        this.loginBtn = false
        this.stepCaptchaVisible = false
      })
    },
    loginSuccess(res) {
      console.log(res)
      // check res.homePage define, set $router.push name res.homePage
      // Why not enter onComplete
      /*
      this.$router.push({ name: 'analysis' }, () => {
        console.log('onComplete')
        this.$notification.success({
          message: '欢迎',
          description: `${timeFix()}，欢迎回来`
        })
      })
      */
      this.$router.push({ path: '/' })
      // 延迟 1 秒显示欢迎信息
      setTimeout(() => {
        this.$notification.success({
          message: '欢迎',
          description: `${timeFix()}，欢迎回来`,
        })
      }, 1000)
      this.isLoginError = false
    },
    requestFailed(err) {
      this.isLoginError = true
      this.$notification['error']({
        message: '错误',
        description: ((err.response || {}).data || {}).message || '请求出现错误，请稍后再试',
        duration: 4,
      })
    },
  },
}
</script>

<style lang="less" scoped>
@keyframes scanLine {
  0% {
    transform: translateY(-100vh);
  }
  100% {
    transform: translateY(100vh);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
  }
}

.main {
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

.login-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: pulse 4s ease-in-out infinite;
  z-index: 1;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(0, 255, 255, 0.7), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.scan-lines {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
  animation: scanLine 3s linear infinite;
  z-index: 2;
}

.login-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 3;
}

.login-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  padding: 0 40px;
  gap: 80px;
}

.system-branding {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
}

.logo-container {
  margin-bottom: 40px;
  position: relative;
}

.eye-icon {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(0, 255, 255, 0.6);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glow 2s ease-in-out infinite;

  &::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    border-top-color: rgba(0, 255, 255, 0.8);
  }
}

.pupil {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #00ffff 0%, #0080ff 100%);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

.iris {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: rgba(0, 255, 255, 0.8);
  animation: rotate 10s linear infinite;
}

.system-title {
  text-align: left;

  h1 {
    font-size: 64px;
    font-weight: 800;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #00ffff 0%, #ffffff 50%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    position: relative;

    &::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, #00ffff, transparent);
    }
  }
}

.subtitle-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;

  .subtitle {
    font-size: 18px;
    color: rgba(0, 255, 255, 0.9);
    letter-spacing: 3px;
    font-weight: 300;
    margin-right: 20px;
  }

  .tech-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.8), transparent);
  }
}

.system-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  letter-spacing: 2px;
  font-weight: 300;
}

.login-form-wrapper {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.2), inset 0 0 50px rgba(0, 255, 255, 0.05);
  width: 100%;
  max-width: 450px;
  position: relative;
  transition: all 0.3s ease;

  &::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(
      45deg,
      rgba(0, 255, 255, 0.5) 0%,
      transparent 25%,
      transparent 75%,
      rgba(0, 255, 255, 0.5) 100%
    );
    border-radius: 20px;
    z-index: -1;
    animation: rotate 4s linear infinite;
  }

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 80px rgba(0, 255, 255, 0.4), inset 0 0 50px rgba(0, 255, 255, 0.1);
  }
}

.form-header {
  text-align: center;
  margin-bottom: 30px;

  .security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;

    .security-icon {
      width: 16px;
      height: 16px;
      background: radial-gradient(circle, #00ffff 0%, #0080ff 100%);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
  }
}

.user-layout-login {
  .ant-tabs {
    .ant-tabs-bar {
      border-bottom: 1px solid rgba(0, 255, 255, 0.2);
      margin-bottom: 30px;

      .ant-tabs-tab {
        color: rgba(255, 255, 255, 0.6);
        font-weight: 500;
        font-size: 16px;
        padding: 12px 24px;
        border-radius: 8px 8px 0 0;
        transition: all 0.3s ease;

        &:hover {
          color: #00ffff;
        }

        &.ant-tabs-tab-active {
          color: #00ffff;
          background: rgba(0, 255, 255, 0.1);
          border-bottom: 2px solid #00ffff;
        }
      }
    }
  }

  .ant-form-item {
    margin-bottom: 24px;

    .ant-form-item-label {
      label {
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        font-weight: 500;
      }
    }
  }

  .ant-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    height: 45px;
    padding: 12px 16px;
    transition: all 0.3s ease;

    &::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    &:hover {
      border-color: rgba(0, 255, 255, 0.6);
      box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    }

    &:focus {
      border-color: #00ffff;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
      background: rgba(0, 0, 0, 0.5);
    }
  }

  .ant-input-affix-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;

    &:hover {
      border-color: rgba(0, 255, 255, 0.6);
      box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    }

    &.ant-input-affix-wrapper-focused {
      border-color: #00ffff;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    }

    .ant-input {
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .ant-input-prefix {
      color: rgba(0, 255, 255, 0.6);
    }
  }

  .getCaptcha {
    display: block;
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    color: #00ffff;
    font-weight: 500;
    transition: all 0.3s ease;

    &:hover {
      background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.2));
      box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
      transform: translateY(-1px);
    }
  }

  .forge-password {
    font-size: 14px;
    color: rgba(0, 255, 255, 0.8);
    transition: all 0.3s ease;

    &:hover {
      color: #00ffff;
      text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
  }

  button.login-button {
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    width: 100%;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    border: none;
    border-radius: 10px;
    color: #000000;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.5s ease;
    }

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);

      &::before {
        left: 100%;
      }
    }

    &:active {
      transform: translateY(0);
    }
  }

  .user-login-other {
    text-align: left;
    margin-top: 24px;
    line-height: 22px;

    .item-icon {
      font-size: 24px;
      color: rgba(0, 255, 255, 0.6);
      margin-left: 16px;
      vertical-align: middle;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 8px;
      border-radius: 50%;

      &:hover {
        color: #00ffff;
        background: rgba(0, 255, 255, 0.1);
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
      }
    }

    .register {
      float: right;
      color: rgba(0, 255, 255, 0.8);
      transition: all 0.3s ease;

      &:hover {
        color: #00ffff;
        text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
      }
    }
  }

  .ant-checkbox-wrapper {
    color: rgba(255, 255, 255, 0.8);

    .ant-checkbox {
      .ant-checkbox-inner {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(0, 255, 255, 0.4);

        &:hover {
          border-color: #00ffff;
        }
      }

      &.ant-checkbox-checked {
        .ant-checkbox-inner {
          background: #00ffff;
          border-color: #00ffff;

          &::after {
            border-color: #000000;
          }
        }
      }
    }
  }

  .ant-alert {
    border-radius: 8px;
    border: none;
    background: rgba(255, 77, 79, 0.1);

    .ant-alert-message {
      color: #ff4d4f;
    }
  }
}

@media (max-width: 768px) {
  .system-title {
    margin-bottom: 40px;

    h1 {
      font-size: 36px;
      letter-spacing: 2px;
    }

    p {
      font-size: 16px;
    }
  }

  .login-form-wrapper {
    padding: 30px 20px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .system-title {
    h1 {
      font-size: 28px;
    }

    p {
      font-size: 14px;
    }
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .login-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .system-branding {
    align-items: center;
  }

  .system-title {
    text-align: center;

    h1 {
      font-size: 48px;
    }
  }
}

@media (max-width: 768px) {
  .login-content {
    padding: 0 20px;
    gap: 30px;
  }

  .eye-icon {
    width: 80px;
    height: 80px;

    &::before {
      width: 100px;
      height: 100px;
    }
  }

  .pupil {
    width: 30px;
    height: 30px;
  }

  .iris {
    width: 60px;
    height: 60px;
  }

  .system-title {
    h1 {
      font-size: 36px;
      letter-spacing: 3px;
    }
  }

  .subtitle-wrapper {
    .subtitle {
      font-size: 14px;
      letter-spacing: 2px;
    }
  }

  .login-form-wrapper {
    padding: 30px 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .system-title {
    h1 {
      font-size: 28px;
      letter-spacing: 2px;
    }
  }

  .subtitle-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    .tech-line {
      width: 100%;
    }
  }

  .login-form-wrapper {
    padding: 20px 15px;
  }

  .user-layout-login {
    .ant-tabs {
      .ant-tabs-bar {
        .ant-tabs-tab {
          padding: 8px 16px;
          font-size: 14px;
        }
      }
    }
  }
}
</style>
